package com.ichir.projects.uiframework.xml;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlIDREF;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="property")
@XmlAccessorType(XmlAccessType.FIELD)
public class XmlProperty {

	@XmlAttribute(name="name", required=true)
	private String name;
	
	@XmlAttribute(name="value")
	private String value;
	
	@XmlAttribute(name="ref")
	@XmlIDREF
	private XmlBean bean;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public XmlBean getBean() {
		return bean;
	}

	public void setBean(XmlBean bean) {
		this.bean = bean;
	}
	
//	public String getReference() {
//		return reference;
//	}
//	
//	public void setReference(String reference) {
//		this.reference = reference;
//	}
	
}
